
        
package com.mall.order;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description: spring boot应用标准工程
 * @Author: zhouzhao
 * @CreateTime: 2022/10/19 10:38:29
 */
@SpringBootApplication(scanBasePackages = {"com.ctg.mse.common", "com.mall.order"})//需要加入common包扫描和自己工程扫描
@EnableFeignClients(basePackages = {"com.ctg.mse.common","com.mall"})
@EnableDiscoveryClient//激活nacos注册中心
@EnableScheduling//定时任务，如果没有定时任务，可以删除

@EnableTransactionManagement//事务管理器，如果不需要事务管理，可以删除
public class AppApplication {
    public static void main(String[] args) {
        SpringApplication.run(AppApplication.class, args);
    }
}
